import Utils.IdCardVerification;
import Utils.IdCardVerify;

public class Main {

    public static void main(String[] args) {



        checkIdCard();
        //rule18Id();
        //rule18();
    }

    private static void checkIdCard() {
        System.out.println(IdCardVerify.isVerify("120222198206143430"));
        System.out.println(IdCardVerify.isVerify("11010519491231002x"));
        System.out.println(IdCardVerify.isVerify("370683198901117657"));
        System.out.println(IdCardVerify.isVerify("11010519491231002x"));
        System.out.println(IdCardVerify.isVerify("110105194912310038"));
        System.out.println();
        System.out.println(IdCardVerify.isVerify("110105194912310037"));
        System.out.println(IdCardVerify.isVerify("020222198206143430"));
        System.out.println(IdCardVerify.isVerify("12022319820614343a"));
        System.out.println(IdCardVerify.isVerify("12022319820614343"));
        System.out.println(IdCardVerify.isVerify("120223198206143430x"));
        System.out.println(IdCardVerify.isVerify("1202231982061434"));
    }

    private static void rule18Id() {
        System.out.println(IdCardVerification.isVerification("120222198206143430"));
        System.out.println(IdCardVerification.isVerification("11010519491231002x"));
//        System.out.println(IdCardVerification.isVerification("12022319820614343X"));
//        System.out.println(IdCardVerification.isVerification("120223198206143430"));
//        System.out.println(IdCardVerification.isVerification("1a0223198206143430"));
//        System.out.println(IdCardVerification.isVerification("020223198206143430"));
//        System.out.println(IdCardVerification.isVerification("12022319820614343a"));
//        System.out.println(IdCardVerification.isVerification("12022319820614343"));
//        System.out.println(IdCardVerification.isVerification("120223198206143430x"));
//        System.out.println(IdCardVerification.isVerification("1202231982061434"));
    }
    private static void rule18() {
        System.out.println(IdCardVerification.isRule18("120223198206143430"));
        System.out.println(IdCardVerification.isRule18("020223198206143430"));
        System.out.println(IdCardVerification.isRule18("1a0223198206143430"));
        System.out.println(IdCardVerification.isRule18("12022319820614343x"));
        System.out.println(IdCardVerification.isRule18("12022319820614343X"));
        System.out.println(IdCardVerification.isRule18("12022319820614343a"));
        System.out.println(IdCardVerification.isRule18("12022319820614343"));
        System.out.println(IdCardVerification.isRule18("120223198206143430x"));
        System.out.println(IdCardVerification.isRule18("1202231982061434"));
    }
}
